<template>
    <div class="header">
        <slot name="left"></slot>
        <slot name="middle">{{title}}</slot>
        <slot name="right"></slot>
    </div>
</template>

<script>
export default {
  props: { title: String }
};
</script>

<style scoped>
a {
  text-decoration: none;
  color: #8a8a8a;
  font-size: 16px;
}
.header {
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  height: 40px;
  width: 100%;
  /* background-color: red; */
}
.header .left {
  position: absolute;
  left: 5px;
  line-height: 40px;
  font-size: 14px;
}
.header .right {
  position: absolute;
  right: 10px;
  line-height: 40px;
}
.header-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 100%;
  /* background-color: blue; */
  text-align: center;
  font-size: 18px;
  color: white;
  line-height: 45px;
}
</style>
